<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>/mobile/settings/setSecurity.jsp</title>

	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> 

	<LINK href="${cPath }/css/bud.css"  rel="stylesheet"  type="text/css"/>
	<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
	<SCRIPT type="text/javascript">
		// jQuery mobile 의 기본 속성인 ajax 해제
		$(document).on("mobileinit", function(){
			$.mobile.ajaxEnabled = false;
		});
	
	</SCRIPT>
	<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>

</head>
<body>
<div id="setSecurity" data-role="page" data-theme="b">
	<div data-role="header" data-position="fixed" data-theme="a">
		<div style="left:5px; top:5px; z-index:10001;position:fixed;" >
			<img src="${cPath }/css/webbud.png" height="30px" />
		</div>
		<a href="${cPath }/logout.mo" id="back" data-icon="custom" class="ui-btn-right">로그아웃</a>
		<h1 >벗</h1>
		<div id="topNavbarId" data-role="navbar" data-iconpos="top" >
			<ul>
				<li><a href="${cPath }/scan/scanMap.mo" id="scan" data-icon="custom" >Scan</a></li>
				<li><a href="${cPath }/bud/budList.mo" id="bud" data-icon="custom" >Bud</a></li>
				<li><a href="${cPath }/chat/chatList.mo" id="chat" data-icon="custom">Chat</a></li>
				<li><a href="${cPath }/setting/setMain.mo" id="set" class="ui-btn-active" data-icon="custom">Settings</a></li>
			</ul>
		</div>
		
	</div>

	<div data-role="content" >
	<form id="setSecurityForm" action="${cPath }/settings/setMain.mo" method="post">
		<INPUT type="hidden" name="mem_no" value="${sessionScope.memberSession.mem_no }" />
		<ul data-role="listview" >
			<li data-role="list-divider">개인설정 - 보안설정</li>
			<li>사람들에게 위치공개
				<select name="mem_sec_topeople" id="mem_sec_topeople" data-role="slider" data-mini="true" >
					<option value="n">Off</option>
					<c:if test="${sessionScope.memberSession.mem_sec_topeople == 'y' }">
						<option value="y" selected="selected">On</option>
					</c:if>
					<c:if test="${sessionScope.memberSession.mem_sec_topeople == 'n' }">
						<option value="y">On</option>
					</c:if>
				</select> 
			</li>
			<li>친구들에게 위치공개
				<select name="mem_sec_tofriend" id="mem_sec_tofriend" data-role="slider" data-mini="true">
					<option value="n">Off</option>
					<c:if test="${sessionScope.memberSession.mem_sec_tofriend == 'y' }">
						<option value="y" selected="selected">On</option>
					</c:if>
					<c:if test="${sessionScope.memberSession.mem_sec_tofriend == 'n' }">
						<option value="y">On</option>
					</c:if>
				</select> 
			</li>
		</ul>
	</form>	
	</div>
	
	<div data-role="footer" data-position="fixed" data-theme="a">		
		<div data-role="navbar">
			<ul>
				<li><a href='javascript:$("#setSecurityForm").trigger("submit")' >수정하고 닫기</a></li>
			</ul>
		</div>
	</div>
	

</div><!-- /page -->
</body>
</html>